import {get, post, del, put} from "@/apis/http/request";
import {RetailHelp} from "@/apis/model/help/RetailHelpModel";

/**
* 得到列表
* @param params
*/
export const getRetailHelpList = (params: any) => get("/retailHelp/list", params)


/**
* 得到分页列表
* @param params
*/
export const retailHelpPage = (params: any) => post("/retailHelp/page", params)

/**
* 删除数据
* @param id
* @returns
*/
export const deleteRetailHelpById = (id: number) => del("/retailHelp/delete/"+ id)

/**
* 新增数据
* @param param
*/
export const insertRetailHelp = (param: RetailHelp) => post("/retailHelp", param)

/**
* 更新数据
* @param param
*/
export const updateRetailHelp = (param: RetailHelp) => put("/retailHelp", param)

/**
 * 添加协议数据
 * @param param
 */
export const insertXieyiRetailHelp = (param: RetailHelp) => post("/retailHelp/insertXieyiRetailHelp", param)

/**
 * 查询协议
 * @param xieyiType 协议类型
 */
export const getXieyiRetailHelp = (xieyiType: string) => get("/retailHelp/getXieyiRetailHelp/"+xieyiType)
